import { defineUniPages } from "@uni-helper/vite-plugin-uni-pages";

/**
 * @description 此文件定义的 pages.json 优先级最高，请勿再修改 pages.json 文件，否则将会被此文件内容覆盖掉
 * @author 花东红
 * @time 2025/7/26
 */
export default defineUniPages({
  globalStyle: {
    navigationStyle: "default",
    navigationBarTitleText: "汇麦商城",
    navigationBarBackgroundColor: "#f8f8f8",
    navigationBarTextStyle: "black",
    backgroundColor: "#FFFFFF"
  },
  easycom: {
    autoscan: true,
    custom: {
      "^(?!z-paging-refresh|z-paging-load-more)z-paging(.*)": "z-paging/components/z-paging$1/z-paging$1.vue"
    }
  },
  preloadRule: {
    "pages/index/index": {
      network: "all",
      packages: ["sources-subpackage"]
    }
  }
});
